#include <iostream>
#include "Designer/MediatorMode/ConcreteColleague1.h"
#include "Designer/MediatorMode/ConcreteMediator.h"
int main() {
    std::cout<<"design mode test"<<std::endl;

    MediatorMode::Mediator* mediator = new MediatorMode::ConcreteMediator;
    MediatorMode::Colleague* collect1 = new MediatorMode::ConcreteColleague1;
    MediatorMode::Colleague* collect2 = new MediatorMode::ConcreteColleague2;
    mediator->regist(collect1);
    mediator->regist(collect2);
    collect1->send();
    collect2->send();

    return 0;
}
